import request from '@/utils/request'

// 查询顾客产品信息列表
export function listCustomerProduct(query) {
  return request({
    url: '/crm/customerProduct/list',
    method: 'get',
    params: query
  })
}

// 查询顾客产品信息详细
export function getCustomerProduct(cpId) {
  return request({
    url: '/crm/customerProduct/' + cpId,
    method: 'get'
  })
}

// 新增顾客产品信息
export function addCustomerProduct(data) {
  return request({
    url: '/crm/customerProduct',
    method: 'post',
    data: data
  })
}

// 修改顾客产品信息
export function updateCustomerProduct(data) {
  return request({
    url: '/crm/customerProduct',
    method: 'put',
    data: data
  })
}

// 删除顾客产品信息
export function delCustomerProduct(cpId) {
  return request({
    url: '/crm/customerProduct/' + cpId,
    method: 'delete'
  })
}
